package cn.itcast.smsreader;


import android.database.ContentObserver;
import android.os.Handler;
import android.util.Log;

public class MyContentObserver extends ContentObserver {
    private static final String TAG = "MyContentObserver";
    /**
     * Creates a content observer.
     *
     * @param handler The handler to run {@link #onChange} on, or null if none.
     */
    public MyContentObserver(Handler handler) {
        super(handler);
    }

    @Override
    public void onChange(boolean selfChange) {
        super.onChange(selfChange);
        Log.e(TAG, "onChange: "+"您的短信数据被修改了" );
    }
}
